<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 套餐表
 * @ author: zuorenci
 * @ email: 904725327@qq.com
 * @ date: 2017/10/24 21:01
 */
class Combo extends Model
{
    public $timestamps = false;

    protected $table = 'combo';

    protected $primaryKey = 'combo_id';

    protected $fillable = [
        'combo_id', //主键ID
        'tuan_id', //团购ID
        'name', //套餐名
        'is_repetition', //是否可以重复选择一项服务 1为是 2为否
        'argument', //可选参数
    ];

    /**
     * 套餐信息表
     * @ author: zuorenci
     * @ email: 904725327@qq.com
     * @ date: 2017/10/24 21:01
     */
    public function combo_info()
    {
        return $this->hasMany('App\\Models\\ComboInfo', 'combo_id', 'combo_id');
    }

}
